<?php
global $references;
$references = array(

	"type.portfolio.Project" => array(
		"class" => "Pageley_Domain_BasicType",
		"constructor" => array(
			"namespace" => "#{portfolioNamespace}",
			"name" => "Project"
		),
		"properties" => array(
            "attributes" => array(
                "name" => "#{attribute.unique(attribute.name)}",
                "summary" => "#{attribute.text}",
                "description" => "#{attribute.longText}",
                "dateStart" => "#{attribute.date}",
                "dateEnd" => "#{attribute.date}",
                "location" => "#{attribute.address}",
                "coverImage" => "#{attribute.image}",
                "phase" => "#{attribute.portfolio.phase}",
                "images" => "#{attribute.manyToMany(attribute.image)}"
            )
		)
	),
	
	"type.portfolio.Phase" => array(
        "class" => "Pageley_Domain_BasicType",
        "constructor" => array(
            "namespace" => "#{portfolioNamespace}",
            "name" => "Phase"
        ),
        "properties" => array(
            "attributes" => array(
                "name" => "#{attribute.unique(attribute.name)}"
            )
        )
    )
);